import request from './requset'

// 注册接口
export const regApi = params => request.post('/1024/register', params)
// 登录接口
export const loginApi = params => request.post('/1024/login', params)
// 默认首页接口
export const homeApi = params =>request.get('/6666',{params})
// 获取sub里面的数据
export const getSubApi = params =>request.get(`/6666/${params}`)
// 侧边栏        
export const getSubAsideApi = params =>request.get(`/6666/field`)
// 设置默认学科
export const setDefaultSubApi = params =>request.post(`/6666/${params}`)
// 获取题目分类列表
export const getSelectQuestionApi = params =>request.get(`/1314/${params.actionCode}/${params.testType}`)
// 获取题目
export const getPracticeApi = params =>request.post(`/1314`,params)
// 提交题目
export const sendAnswerApi = params =>request.put('/1314',params)
// 快速刷题
export const fastTestApi = () =>request.get(`/4698`)

    
